
dataSource {
    pooled = true
    driverClassName = "com.mysql.jdbc.Driver"
}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
    development {
        dataSource {
			dbCreate = "update"
			url = "jdbc:mysql://localhost/snack?autoReconnect=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull"
			username = "root"
			password = "iasolution"
		}
    }
    test {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost/snack?useUnicode=true&characterEncoding=utf-8"  //?autoReconnect=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
            username = "root"
            password = "iasolution"
        }
    }
    production {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost/snack?useUnicode=true&characterEncoding=utf-8"  //?autoReconnect=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
            username = "root"
			password = "bitnami"
        }
    }
}
